<?php


return array(
    'router' => array(
        'routes' => array(
            'product' => array(
                'type' => 'Segment' ,
                'options' => array(
                    'route' => '/product[/:action[/:id]]' ,
                    'defaults' => array(
                        '__NAMESPACE__' => 'Product\Controller' ,
                        'controller' => 'Product' ,
                        'action' => 'index'
                    ),
                    'constraints' => array(
                        'action'     => '[a-zA-Z][a-zA-Z0-9_-]*',
                        'id'    => '[0-9]+' ,
                    ),
                    'defaults' => array(
                        'controller' => 'Product\Controller\Product',
                        'action'     => 'index',
                    ),
                ),
            ),
        ),
    ),
    
    'controllers' => array(
        'invokables' => array(
            'Product\Controller\Product' => 'Product\Controller\ProductController'
        ),
    ),    
    
    'view_manager' => array(
        'template_path_stack' => array(
            'users' => __DIR__ . '/../view/' ,
        ),
    ),
);